import logo from './logo.svg';
import './App.css';
import {Dialog} from './components/dialog'
import {useState,useEffect} from 'react'
function App() {
  const [title,setTile] = useState('确认删除账号？')
  const [visible,setVisible] = useState('none')
  return (
    <div className="App">
        对话框组件
        <button onClick={()=>setVisible('block')}>点击打开对话框</button>
        <Dialog title={title} visible={visible} setVisible={setVisible}/>
    </div>
  );
}

export default App;
